package com.bookmanager.www.entity.mongodb;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: 风离
 * @Date: 2021/12/09/22:59
 * @Description:
 */

@Document
@Data
public class MemberReadHistory {

    @Id
    private String id;

    @Indexed
    private Long memberId;

    @Indexed
    private Long bookId;

    private String imgUrl;

    @Indexed
    private String title;

    private String price;

    private LocalDateTime createTime;
}
